package org.jeecg.basic.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统异常历史(SysExceptionHistory)实体类
 *
 * @author liting
 * @since 2024-09-23 11:49:18
 */
@Data
@TableName("sys_exception_history")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "sys_exception_history对象", description = "系统异常历史实体类")
public class SysExceptionHistory implements Serializable {
    private static final long serialVersionUID = 419629365450826397L;
    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    @TableId(type = IdType.AUTO)
    private Integer recId;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date ctime;
    /**
     * 服务名
     */
    @Excel(name = "服务名", width = 15)
    @ApiModelProperty(value = "服务名")
    private String server;
    /**
     * 产线或产线组
     */
    @Excel(name = "产线或产线组", width = 15, dictTable = "mes_line_cfg", dicText = "LINE", dicCode = "LINE")
    @Dict(dictTable = "mes_line_cfg", dicText = "LINE", dicCode = "LINE")
    @ApiModelProperty(value = "产线或产线组")
    private String line;
    /**
     * 工位
     */
    @Excel(name = "工位", width = 15)
    @ApiModelProperty(value = "工位")
    private String op;
    /**
     * 工站
     */
    @Excel(name = "工站", width = 15)
    @ApiModelProperty(value = "工站")
    private String stn;
    /**
     * 工单ID
     */
    @Excel(name = "工单ID", width = 15)
    @ApiModelProperty(value = "工单ID")
    private String woid;
    /**
     * 序列号
     */
    @Excel(name = "序列号", width = 15)
    @ApiModelProperty(value = "序列号")
    private String unitsn;
    /**
     * 命令名
     */
    @Excel(name = "命令名", width = 15)
    @Dict(dicCode = "cmd_type")
    @ApiModelProperty(value = "命令名")
    private String cmd;
    /**
     * 错误代码
     */
    @Excel(name = "错误代码", width = 15)
    @ApiModelProperty(value = "错误代码")
    private String errcode;
    /**
     * 错误描述
     */
    @Excel(name = "错误描述", width = 15)
    @ApiModelProperty(value = "错误描述")
    private String errmsg;

}